import 'package:flutter/material.dart';

class Animated8Page extends StatefulWidget {
  final Map arguments;
  const Animated8Page({super.key, required this.arguments});

  @override
  State<Animated8Page> createState() => _Animated8PageState();
}

class _Animated8PageState extends State<Animated8Page> {
  @override
  Widget build(BuildContext context) {
    final String imageUrl = widget.arguments['imageUrl'];
    return GestureDetector(
      onTap: () {
        Navigator.pop(context);
      },
      child: Scaffold(
        backgroundColor: Colors.white,
        body: Center(
          child: AspectRatio(
            aspectRatio: 16 / 9,
            child: Hero(tag: imageUrl, child: Image.network(imageUrl)),
          ),
        ),
      ),
    );
  }
}
